package com.epfresh.supplier.entity;

import com.epfresh.api.utils.JsonUtils;

/**
 * @author wangzhanghuan
 * @version 1.0
 * @date create 18-1-5
 * @Description
 */

public class OrderTrackWord {

    /*{
        "word": "文案",
            "affImgUrls": "附件",
            "time": "时间"
    }*/


    String[] word;
    String[] affImgUrls;

    String time;


    boolean isTop;
    boolean isTopLine;
    boolean isBottomLine;
    boolean isBoldTop;

    public boolean isBoldTop() {
        return isBoldTop;
    }

    public void setBoldTop(boolean boldTop) {
        isBoldTop = boldTop;
    }

    public boolean isTop() {
        return isTop;
    }

    public void setTop(boolean top) {
        isTop = top;
    }

    public boolean isTopLine() {
        return isTopLine;
    }

    public void setTopLine(boolean topLine) {
        isTopLine = topLine;
    }

    public boolean isBottomLine() {
        return isBottomLine;
    }

    public void setBottomLine(boolean bottomLine) {
        isBottomLine = bottomLine;
    }

    public String[] getWord() {
        return word;
    }

    public void setWord(String[] word) {
        this.word = word;
    }

    public String[] getAffImgUrls() {
        return affImgUrls;
    }

    public void setAffImgUrls(String[] affImgUrls) {
        this.affImgUrls = affImgUrls;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getWords() {
        StringBuilder sb = new StringBuilder();
        if (word != null && word.length > 0) {
            for (int i = 0; i < word.length; i++) {
                if (i > 0) {
                    sb.append("\n");
                }
                String s = word[i];
                sb.append(s);
            }
            return sb.toString();
        }

        return "";
    }

    @Override
    public String toString() {
        return JsonUtils.toJson(this);
    }
}
